export function f() {
  console.log('aaaaa');
}

export function checkUsername(obj) {
  var reg = /^([a-z0-9\.\@\!\#\$\%\^\&\*\(\)]){6,20}$/i;
  if (reg.test(obj)) {
    return true;
  } else {
    return false;
  }
}

export function checkPassword(psw) {
  var reg1 = /^(?=.*[a-z])(?=.*[0-9])(?=.*[^\sA-Za-z0-9])\S{8,32}$/;
  var reg2 = /^(?=.*[A-Z])(?=.*[0-9])(?=.*[^\sA-Za-z0-9])\S{8,32}$/;
  var reg3 = /^(?=.*[A-Z])(?=.*[a-z])(?=.*[^\sA-Za-z0-9])\S{8,32}$/;
  var reg4 = /^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])\S{8,32}$/;
  if (reg1.test(psw) || reg2.test(psw) || reg3.test(psw) || reg4.test(psw)) {
    return true;
  } else {
    return false;
  }
}

export function checkMail(mail) {
  var reg = /^([0-9A-Za-z\-_\.]+)@([0-9a-z]+\.[a-z]{2,3}(\.[a-z]{2})?)$/;
  if (reg.test(mail)) {
    return true;
  } else {
    return false;
  }
}
